import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('AuthState', () => {
  const state = ref({
    access_token: '',
    refresh_token: '',
    user: {
      dept: {},
      roles: [],
    },
    allmenus: [],
    menus: [],
    navs: ['/wel'],
    perms: [],
    login: false,
  })

  return { state }
})
